package com.abc.scholarship.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 结果表
 * </p>
 *
 * @author LiJunXi
 * @since 2024-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_apply_res")
public class ApplyRes implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
      @TableId("u_id")
    private Long uId;

    /**
     * 奖学金ID
     */
    @TableField("scholarship_id")
    private Long scholarshipId;

    /**
     * 年份
     */
    @TableField("year")
    private Integer year;

    public ApplyRes(Long uId, Long scholarshipId, Integer year) {
        this.uId = uId;
        this.scholarshipId = scholarshipId;
        this.year = year;
    }
}
